{extend name="public/base"/}
{block name="style"}
{/block}
{block name="content"}
<div class="data-list" data-url="{:url('index')}">
    <form class="layui-form inline-form">
        <div class="pull-left">
            <div class="layui-inline">
                <select name="status" lay-search lay-filter="data-list">
                    <option value="">状态</option>
                    {foreach $status as $k=>$v}
                    <option value="{$k}">{$v}</option>
                    {/foreach}
                </select>
            </div>
            <div class="layui-inline">
                <input class="layui-input" autocomplete="off" name="code" placeholder="货架编号">
            </div>
            <div class="layui-inline">
                <button class="layui-btn layui-btn-sm layui-btn-normal search"><i class="layui-icon layui-icon-search"></i></button>
            </div>
        </div>
        <div class="pull-right">
            <div class="layui-inline">
                <button class="layui-btn layui-btn-normal layui-btn-sm ajax-form" data-url="{:url('add')}"><i class="layui-icon layui-icon-add-circle"></i> 新增</button>
            </div>
        </div>
    </form>
    <div class="data">
        <p><i class="fa fa-spinner fa-spin"></i> 加载中...</p>
    </div>
</div>
{/block}
{block name="script"}
{/block}